package org.csu.molediary.api.service;

import org.csu.molediary.api.common.CommonResponse;
import org.csu.molediary.api.entity.Commentinfo;
import org.csu.molediary.api.vo.CommentInfoVO;

import java.util.List;

public interface CommentInfoService {

    //保存发出评论
    CommonResponse<Commentinfo> saveCommentinfo(Commentinfo commentinfo);

    //获得某用户被评论信息
    CommonResponse<List<Commentinfo>> queryCommentinfoByCommented(String Commented);

    //通过日记id查到评论信息
    CommonResponse<List<CommentInfoVO>> queryCommentInfoByDiaryId(int diaryid);
}
